﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.hive;

namespace SharpSqlAnalyzer.stmt.hive
{
	// Token: 0x020001BA RID: 442
	public class THiveDropFunction : TCustomSqlStatement
	{
		// Token: 0x06000EBE RID: 3774 RVA: 0x0030A728 File Offset: 0x00308928
		public THiveDropFunction(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.ssthiveDropFunciton;
		}

		// Token: 0x170002B0 RID: 688
		// (get) Token: 0x06000EBF RID: 3775 RVA: 0x0030A73C File Offset: 0x0030893C
		// (set) Token: 0x06000EC0 RID: 3776 RVA: 0x0030A744 File Offset: 0x00308944
		public virtual TObjectName FunctionName
		{
			get
			{
				return this.functionName;
			}
			set
			{
				this.functionName = value;
			}
		}

		// Token: 0x06000EC1 RID: 3777 RVA: 0x0030A750 File Offset: 0x00308950
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			THiveDropFunctionSqlNode thiveDropFunctionSqlNode = (THiveDropFunctionSqlNode)this.rootNode;
			this.functionName = thiveDropFunctionSqlNode.FunctionName;
			return 0;
		}

		// Token: 0x06000EC2 RID: 3778 RVA: 0x0030A788 File Offset: 0x00308988
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000EC3 RID: 3779 RVA: 0x0030A798 File Offset: 0x00308998
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001342 RID: 4930
		private TObjectName functionName;
	}
}
